From: Øyvind Kolås Date: Wed, 24 Jul 2019 13:28:59 +0000 (+0200) Subject: extensions/HSL: add model doc string X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~11^2~61 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0794559b21fc6ed4080fed602205b00fde05dd72;p=babl.git extensions/HSL: add model doc string --- diff --git a/extensions/HSL.c b/extensions/HSL.c index 2650a14..0cd1daa 100644 --- a/extensions/HSL.c +++ b/extensions/HSL.c @@ -72,17 +72,19 @@ init (void) babl_component_new ("lightness", NULL); babl_component_new ("alpha", NULL); - babl_model_new ("name", "HSLA", + babl_model_new ("name", "HSL", + "doc", "HSL - Hue Saturation Lightness, an improvement over HSV; which uses lightness; defined as (MAX(R,G,B) + MIN(R,G,B))/2 for the grayscale axis; better than HSV, but look into the CIE based spaces for better perceptual uniformity. The HSL space is relative to the RGB space associated with the format.", babl_component ("hue"), babl_component ("saturation"), babl_component ("lightness"), - babl_component ("alpha"), - "alpha", NULL); - babl_model_new ("name", "HSL", + babl_model_new ("name", "HSLA", + "doc", "HSL - with separate alpha component.", babl_component ("hue"), babl_component ("saturation"), babl_component ("lightness"), + babl_component ("alpha"), + "alpha", NULL);